package com.ihr360.payroll.dao;

import com.ihr360.payroll.model.dto.salary.meta.SalaryField;
import com.ihr360.rest.reposity.SimpleRestReposity;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.data.rest.core.annotation.RestResource;

import java.util.List;

/**
 * @author tomtao
 */
public interface SalaryFieldRepository extends SimpleRestReposity<SalaryField, Long> {

    List<SalaryField> findByConfigId(@Param(value = "configId") Long configId);

    List<SalaryField> findByConfigIdAndTypeCategoryId(Long configId, Long categoryId);

    List<SalaryField> findByMetaId(Long systemSalaryFieldId);
}